package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = TestService.class)
@Transactional
public class TestServiceImpl implements TestService {
@Autowired
TestMapper testMapper;

    @Override
    public String hello() {
        //在数据库加一个表返回一个数据
        return testMapper.hello();
    }
}
